package ltd.dujiabao.performance.monitor.pm.event;

import org.springframework.context.ApplicationEvent;

/**
 * @author : DuJiabao
 * @Project : performance_monitor
 * @Time : 2022/2/27 20:47
 * @Desc :
 */
public class CollectEvent extends ApplicationEvent {
    private final Long timeConsuming;
    private final String[] urls;

    public CollectEvent(Object source, Long timeConsuming, String[] urls) {
        super(source);
        this.timeConsuming = timeConsuming;
        this.urls = urls;
    }

    public Long getTimeConsuming() {
        return timeConsuming;
    }

    public String[] getUrls() {
        return urls;
    }
}
